package com.jiang.daily.Q2255;

/**
 * @author Jiang
 * @version 1.0
 * @date 2025/03/24 20:16
 */
class Solution {
    public int countPrefixes(String[] words, String s) {
        int res = 0;
        for (String t: words) {
            if (s.startsWith(t)) {
                res++;
            }
        }
        return res;
    }
}
